﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IUseCaseInstanceService.cs" company="">
//   
// </copyright>
// <summary>
//   The UseCaseInstanceService interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.UseCases
{
    using Libium.Core;

    /// <summary>
    ///   The UseCaseInstanceService interface.
    /// </summary>
    public interface IUseCaseInstanceService : IInstanceService
    {
        #region Public Properties

        /// <summary>
        ///   Gets the temporary file path.
        /// </summary>
        string TemporaryFilePath { get; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        ///   The create use case.
        /// </summary>
        /// <typeparam name="T"> </typeparam>
        /// <returns> The <see cref="T" /> . </returns>
        T CreateUseCase<T>() where T : IUseCase;

        /// <summary>
        /// The execute command.
        /// </summary>
        /// <param name="command">
        /// The command. 
        /// </param>
        void ExecuteCommand(ICommand command);

        /// <summary>
        /// The execute modal use case.
        /// </summary>
        /// <param name="useCase">
        /// The use case. 
        /// </param>
        /// <returns>
        /// The <see cref="CommandDefinition"/> . 
        /// </returns>
        CommandDefinition ExecuteModalUseCase(IUseCase useCase);

        /// <summary>
        /// The execute use case.
        /// </summary>
        /// <param name="useCase">
        /// The use case. 
        /// </param>
        void ExecuteUseCase(IUseCase useCase);

        #endregion
    }
}